package com.ruoyi.Controller;

import com.ruoyi.service.IBloomFilterService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("test")
public class TestBloomFilterTest {


	@Resource
	IBloomFilterService iBloomFilterService;

	private    final  String BOOLFILTER_KEY = "boolFilter:user";


	@RequestMapping("add")
	public  void  add(){

		iBloomFilterService.add(BOOLFILTER_KEY,"123456");

		Boolean exist = iBloomFilterService.exist(BOOLFILTER_KEY, "123456");
		System.out.println(exist);


	}

}
